/*
 * Main.fx
 *
 * Created on Oct 1, 2009, 11:25:45 AM
 */

package dawnland02;

import javafx.stage.Stage;
import javafx.scene.Scene;

import dawnland02.ui.UIService;

/**
 * @author Petru Obreja (obrejap@yahoo.com)
 */
 /*
  main function
 */

def uiService = UIService {    
    };


function run() : Void {
    def uiMatrix = uiService.getUIMatrix();
    def uiEntity = uiService.createUIEntity(uiMatrix.getUIHexagon(64));
    //def uiEntity2 = uiService.createUIEntity(uiMatrix.getUIHexagon(1));
    var scene: Scene;
    scene = Scene {
        content: [uiMatrix, uiEntity]
            }

    Stage {
        title: "Dawnland v0.2"
        scene: scene;
        resizable: false
        }
}